import random
print("100000 100000 10000")
t = 100000
duration = random.randrange(1, 1000000000)
totalUseMemory = 0
for i in range(0, 10000):
    useMemory = random.randrange(1, 10000)
    totalUseMemory += useMemory
    if random.randrange(1, 3) == 1 or totalUseMemory > 100000:
        t += 100000
        duration = random.randrange(1, 1000000000)
        totalUseMemory = useMemory
    print("%d %d %d %d" % (random.randrange(0, 90000), useMemory, t, duration))
